

package com.maoshi.shop.user.comment.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.maoshi.shop.user.comment.model.Coupon;
import com.maoshi.shop.user.comment.dao.UserLevelCategoryMapper;
import com.maoshi.shop.user.comment.dao.UserLevelCouponMapper;
import com.maoshi.shop.user.comment.model.UserLevelCategory;
import com.maoshi.shop.user.comment.model.UserLevelCoupon;
import com.maoshi.shop.user.comment.service.UserLevelCategoryService;
import com.maoshi.shop.user.comment.service.UserLevelCouponService;
import lombok.AllArgsConstructor;
import org.springframework.stereotype.Service;

import java.util.Collection;
import java.util.List;

/**
 *
 *
 * @author LGH
 * @date 2020-02-26 16:03:14
 */
@Service
@AllArgsConstructor
public class UserLevelCouponServiceImpl extends ServiceImpl<UserLevelCouponMapper, UserLevelCoupon> implements UserLevelCouponService {

    private final UserLevelCouponMapper userLevelCouponMapper;



    @Override
    public void insertBatchCoupon(Long[] coupons ,Long id) {
        userLevelCouponMapper.insertBatchCoupon(coupons, id);
    }

    @Override
    public void delBatchCoupon(Long[] coupons, Long id) {
        userLevelCouponMapper.delBatchCoupon(coupons, id);
    }

    @Override
    public List<Coupon> getCouponListByLevelId(Long id) {
        return userLevelCouponMapper.getCouponListByLevelId(id);
    }

}
